package com.cunfang.entity;

import java.util.ArrayList;
import java.util.List;

/** 当前登录人session承载类 **/
public class UserInfo {

	public  final static  String SESSION_USER = "SESSION_USER";   //当前用户信息
	public 	final static  String USER_PERMISSION = "USER_PERISSION" ; //当前用户权限信息
	public  static   List<String> permission = new ArrayList<String>() ;   //当前用户菜单权限信息
	private String userid;
	private String username;
	private String name;
	private String phone;

	private String token;
	private String status;
	private String isstatus;
	
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getIsstatus() {
		return isstatus;
	}
	public void setIsstatus(String isstatus) {
		this.isstatus = isstatus;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public static List<String> getPermission() {
		if(permission ==null){
			permission = new ArrayList<String>();
		}
		return permission;
	}
	public static void setPermission(List<String> permission) {
		UserInfo.permission = permission;
	}
	
	

}
